package com.liu.ws;

import java.util.HashMap;
import java.util.Map;

public abstract class WsUpload extends MhcItem {

	public WsUpload() {
	}

	String code, filepath;
	String url;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String url() {
		return url + "/uploadServlet?code=" + code;
	}

	@Override
	public Map<String, String> getParameters() {
		Map<String, String> res = new HashMap<String, String>();
		res.put("FILE:::data", filepath);
		return res;
	}

}
